#ifndef __LAPI_PID_H__
#define __LAPI_PID_H__
/*******************************************************************************
 * Copyright (C), 200{x}, Borqs Tech. Co., Ltd.
 * File Name: 
 *     lapi_pid.c
 * Description: 
 *     Check pid for unique server instance
 * History:  
 * 
 * Date          Author                         Comments
 * ----------   ---------------------------    --------------------
 * May-09-2008   ray.fan@borqs.com            Created
 * Feb-02-2009   anle.zhou@borqs.com          Android migration
 ******************************************************************************/

#ifdef __cplusplus
extern "C"
{
#endif

#define LAPI_PID_FILE "/tmp/lapi.pid"

extern LAPI_INT32    lapi_read_pid( void );
extern LAPI_INT32    lapi_check_pid( void );
extern LAPI_INT32    lapi_save_pid( void );
extern void     lapi_remove_pid( void );
extern LAPI_INT32    lapi_pid_mutex( void );

#ifdef __cplusplus
}

#endif

/*==============================================================================*/
#endif  /* lapi_pid.h*/
